![]() | AMLEngine2.1 Version 1.3 |
Version 1.3 of AMLEngine2.1 was released on 26.07.2019.
New class CaexValue has been added. The class supports encoding and decoding of value elements according to a defined AttributeDataType.
Example: Get and set a Timespan value.
using Aml.Engine.CAEX; using Aml.Engine.Resources; var document = CAEXDocument.LoadFromFile ("myFile.aml"); var iH = document.CaexFile.InstanceHierarchy.Append("myIH"); var iE = iH.InternalElement.Append ("myIE"); var at = iE.Attribute.Append ("myAT"); at.AttributeDataType = XsdDataTypes.DurationType; at["Value"] = new TimeSpan (hours:0, minutes:0, seconds:29); TimeSpan duration = at["Value"];
Access to the XSD Datatype Resourcestrings are made public now: XsdDataTypes